

PROG=nofate

DEP_OBJS=redeye/redeye.o redeye/font.o redeye/fov_point.o
DEP_OBJS+=ui/ui.o ui/dialog.o
DEP_OBJS+=abstract/thing.o abstract/action.o abstract/map.o abstract/attribute.o \
          abstract/typebase.o
LOCAL_OBJS=main.o genesis.o creator.o

INCLUDES=-Iredeye -I.
LIBS=-lSDL -lSDL_image

all : dep ${PROG}

${PROG} : ${DEP_OBJS} ${LOCAL_OBJS}

dep :
	make -C redeye 
	make -C abstract 
	make -C ui

clean :
	make -C redeye clean
	make -C abstract clean
	make -C ui clean
	rm -f ${LOCAL_OBJS}
	rm -f ${LOCAL_OBJS:.o=.d}

.PHONY = redeye

include ${LOCAL_OBJS:.o=.d}

include Makefile.generic
